<template>
    <div>
        <h3>默认选择要点:</h3>
        <h3> v-model绑定的是value,value的值要是动态绑定的</h3>
        <Select v-model="model19">
            <Option v-for="(item, index) in list2" :value="item.value" :key="index">
                {{item.label}}</Option>
        </Select>
        <Button type="primary" @click="moUpdata()">修改引入模块值</Button>
    </div>
</template>

<script>
import mo from '../mind-vuex/mind-vue/module'

export default {
    name: "SelectBox",
    data() {
        return {
            model19: 'shanghai',
            list2: [
                {
                    value: 'beijing',
                    label: '北京'
                },
                {
                    value: 'shanghai',
                    label: '上海'
                },
                {
                    value: 'shenzhen',
                    label: '深圳'
                },
                {
                    value: 'hangzhou',
                    label: '杭州'
                },
                {
                    value: 'guangzhou',
                    label: '广州'
                }
            ],
        }
    },
    methods: {
        moUpdata() {
            alert(mo.abc)
        }
    }
};
</script>

<style lang="less" scoped>
</style>
